package http;

/**
 * Created by root on 15-6-2.
 */
public class RequestException extends Exception{
    private SimpleHttpResponse response;

    public RequestException(String message) {
        super(message);
    }

    public RequestException() {
    }

    public RequestException(SimpleHttpResponse response, String message) {
        super(message);
        this.response = response;
    }

    public RequestException(String message, Throwable cause) {
        super(message, cause);
    }

    public RequestException(Throwable cause) {
        super(cause);
    }

    public RequestException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public SimpleHttpResponse getResponse() {
        return response;
    }
}
